package com.itany.life.userdemo.controller;

import com.itany.life.userdemo.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/navigation")
public class NavigationController {

    @Autowired
    private PermissionService permissionService;

    @RequestMapping("/menus")
    public List<Map<String,Object>> findMenus(){
        return permissionService.findNavigation();
    }


}
